![]() |
HOpenDF |
||||
Header: | Files.h | Carbon status: | Supported | |
Opens the data fork of a file.
OSErr HOpenDF ( SInt16 vRefNum, SInt32 dirID, ConstStr255Param fileName, SInt8 permission, SInt16 *refNum );
A volume reference number, a working directory reference number, or 0 for the default volume.
A directory ID.
The name of the file.
The access mode under which to open the file.
On return, a pointer to the file reference number of the opened file.
A result code.
The HOpenDF function creates an access path to the data fork of a file and returns, in the refNum parameter, an access path reference number to that fork. You can pass that reference number as a parameter to any of the high-level file access functions.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)